﻿using Microsoft.AspNetCore.Mvc;
using System.Text;
using System.Threading;
using 订单处理系统.IService.impl;
using 订单处理系统.Repository;

namespace 订单处理系统.Controllers
{
    public class TestContoller : BaseContoller
    {
        private readonly IRedisService _redisService;
        private readonly RabbitMQService _rabbitMQService;
        private readonly UserRepository _userRepostiory;

        public TestContoller(IRedisService redisService, RabbitMQService rabbitMQService, UserRepository userRepostiory)
        {
            _redisService = redisService;
            _rabbitMQService = rabbitMQService;
            _userRepostiory = userRepostiory;
        }

        [HttpGet]
        public async Task<string?> test()
        {
            await _rabbitMQService.SendAsync("", "Test", "测试测试测试");
            return "";
        }
    }
}